home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / prog / word.arj / FONT.DOC < prev    next >
Text File  |  1993-01-28  |  2KB  |  37 lines

  1.                 WGT Fonts
  2.                 ~~~~~~~~~
  3.                      Copyright 1993 Chris Egerter
  4.  
  5.  
  6. Version 3.5 of the Wordup Graphics Toolkit allows you to use different
  7. fonts for any text output. Fonts can easily be created or modified by
  8. you using the Sprite Creator.  Only the first 128 characters are used.
  9. Each character can be any size you wish (proportional spacing!) and
  10. may be a special graphic design. 
  11.     The system font has been saved in a sprite file as system.spr. 
  12. When you want to create a new font, copy system.spr to a new name, and
  13. modify the new file. The file has all characters in normal text, so
  14. you know which sprites represent each character. (switching them would cause
  15. much confusion). If you don't plan on using certain characters in your program,
  16. simply leave them as they are.
  17.     After you have created your font, run the utility called spr2fnt.exe.
  18. This will convert the sprite file into a WGT font file which you can then
  19. load using the wloadfont command.
  20.  
  21. To use the new font, declare a font variable such as:
  22.     wgtfont sans_serif;
  23.  
  24. Then load it in using wloadfont:
  25.         sans_serif=wloadfont("newfont.fnt");
  26.  
  27. To display text using the new font pass the font to the wouttextxy command:
  28.     wouttextxy(10,10,"This is the new font",sans_serif);
  29.  
  30. WGT Menus can support different fonts as well. To change the font, load it in
  31. using the procedure above, and change the variable menufont:
  32.     menufont=sans_serif;
  33. The menu will be shown using your font when it is displayed. Make sure the font
  34. is not too large however, or the all menus will not fit on the screen.
  35.  
  36.  
  37.